<?php
declare (strict_types = 1);

namespace app\api\controller;

use think\Request;
use app\admin\model\RetailStore as RetailStoreModel;

class RetailStore extends Base
{
    /**
     * 分销商品展示
     * @return false|string
     */
    public function StoreGoodsList(){
        //分页查询
        $page=input('get.page');
        if(!isset($page)){
            return $this->sendJson('','页码数不能为空','400000');
        }
        //每页展示调试
        $limit=input('get.limit');
        if(empty($limit)){
            return $this->sendJson('','每页展示数量不能为空','400000');
        }
        //获取数据
        $arr=RetailStoreModel::limit($page,$limit)->select();
        //返回
        if(empty($arr)){
            return $this->sendJson('','数据没有啦','400000');
        }else{
            return $this->sendJson($arr,'查询成功','200000');
        }
    }



}
